package P12.T01;


public class T01 {
    static void RoomEat(Eatable e){
        e.eat();
    }
    public static void main(String[] args) {
        RoomEat(new Elephant());
    }
}
interface Eatable{
    void eat();
}
class Dog implements Eatable {
    public void eat(){
        System.out.println("Dog Eats");
    }
}
class Cat implements Eatable {
    public void eat(){
        System.out.println("Cat Eats");
    }
}
class Person implements Eatable {
    public void eat(){
        System.out.println("Person Eats");
    }
}
class Elephant implements Eatable {
    public void eat(){
        System.out.println("Elephant Eats");
    }
}

